package com.design.facade;

/**
 * @author cxx
 * @create 2020-04-21 13:29
 **/
public class VehicleFacades {

    private Vehicle car;

    private Vehicle aircraft;

    private Vehicle train;

    public VehicleFacades(Vehicle car, Vehicle aircraft, Vehicle train) {
        this.car = car;
        this.aircraft = aircraft;
        this.train = train;
    }

    public void carTrip(){
        car.trip ();
    }

    public void aircraftTrip(){
        aircraft.trip ();
    }

    public void trainTrip(){
        train.trip ();
    }



}
